package br.projecao.util;

import java.io.IOException;

import javax.persistence.NoResultException;
import javax.validation.ConstraintViolationException;

/**
 * Classe responsavel pelo tratamento de exceptions.
 * 
 * @author v0rtex
 *
 */
public class TratadorExceptions {

	public static void tratarExceptionsGerais(Exception e) {
		e.printStackTrace();
	}
	
	public static void tratarConstraintViolationException(ConstraintViolationException c) {
		c.printStackTrace();
	}
	
	public static void tratarNoResultException(NoResultException n){
		n.printStackTrace();
	}
	
	public static void tratarIOException(IOException i) {
		i.printStackTrace();
	}
	
/*	public static void tratarEmailException(EmailException e) {
		e.printStackTrace();
	}*/
}
